//
//  Student.m
//  内存作业
//
//  Created by dllo on 15/12/10.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Student.h"

@implementation Student

- (id)init{
    
    self = [super init];
    if (self) {
        self.scorelist = [NSMutableDictionary dictionary];
    }
    return self;
}

- (BOOL)compareAgeToStudent:(Student *)stu{
    return self.age > stu.age ? YES:NO;
    
}

- (void)dealloc{
    
    [_scorelist release];
    [super dealloc];
    
}


- (NSString *)description{
    return [NSString stringWithFormat:@"%@,%ld,%ld,%@",self.name,self.age,self.number,self.scorelist];
}



@end
